<template>
  <el-pagination
      class="pagination"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="[10, 20, 30, 40]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
  </el-pagination>
</template>

<script>
export default {
  name: "ModulePagination",
  props:{
    page: Number,
    pageSize: Number,
    total: Number,
  },
  data(){
    return{

    }
  },
  methods:{
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    }
  }

}
</script>

<style scoped>
.pagination{
  float: left;
  margin: 20px 35%;
}
</style>